<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title><?php echo ($AGENT["name"]); ?></title>
<link href='/pintuan/Public/Member/css/global.css' rel='stylesheet' type='text/css' />
<link href='/pintuan/Public/Member/css/main.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/jquery-1.7.2.min.js'></script>
<script type='text/javascript' src='/pintuan/Public/Member/js/global.js'></script>
<script type='text/javascript'>
var web_domain='/pintuan';
var static_domain='/pintuan';
var img_domain='/pintuan';
var _PUBLIC_ = '/pintuan/Public';
var _FILE_ = '<?php echo U('Index/ajaxFileUpload');?>';
</script>
<link href='/pintuan/Public/Member/css/wechat.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='/pintuan/Public/Member/js/wechat.js'></script>
<!--[if lte IE 9]><script src="__PUBIC__/Member/js/jquery.watermark-1.3.js"></script><![endif]-->
<script type='text/javascript' src='/pintuan/Public/Member/js/operamasks-ui.min.js'></script>
<link href='/pintuan/Public/Member/css/operamasks-ui.css' rel='stylesheet' type='text/css' />
</head>
<body>
<div id="iframe_page">
    <div class="iframe_content"> 
		<div class="r_nav">
		    <ul>
	            <li class="<?php if(!in_array(ACTION_NAME,array('url','sysurl'))): ?>cur<?php endif; ?>"><a href="<?php echo U('Material/index');?>">图文消息管理</a></li>
	            <li class="<?php if((ACTION_NAME) == "url"): ?>cur<?php endif; ?>"><a href="<?php echo U('Material/url');?>">自定义URL</a></li>
          	</ul>
		</div>
		
<script type='text/javascript' src='/pintuan/Public/Member/js/plugin/masonry/masonry.min.js'></script>
<script language="javascript">$(window).load(wechat_obj.material_init);</script>
<div id="material" class="r_con_wrap">     
	<div class="list">
	    <div class="item first_item">
	        <div>
	            <div><a href="<?php echo U('Material/onenews');?>"></a></div>
	            <a href="<?php echo U('Material/onenews');?>">+单图文消息</a>
	        </div>
	        <div class="multi">
	            <div><a href="<?php echo U('Material/news');?>"></a></div>
	            <a href="<?php echo U('Material/news');?>">+多图文消息</a>
	        </div>
	    </div>
	       
        <!-- 显示内容列表  开始 -->
        <?php if(is_array($lists)): foreach($lists as $key=>$v): if(($v["msgtype"]) == "onenews"): ?><!-- 显示单图文信息 开始 -->
            <div class="item one masonry-brick" style="position: absolute; top: 167px; left: 0px;">
                <div class="title"><?php echo ($v['configs']['Title']); ?></div>
                <div><?php echo (date("Y-m-d",$v["createtime"])); ?></div>
                <div class="img"><img src="<?php echo ($v['configs']['ImgPath']); ?>"></div>
                <div class="txt"><?php echo ($v['configs']['BriefDescription']); ?></div>
                <div class="mod_del">
                 <div class="mod"><a href="<?php echo U('onenews',array('id'=>$v['id']));?>"><img src="/pintuan/Public/Member/images/ico/mod.gif"></a></div>
                 <div class="del"><a href="<?php echo U('delNewmsg',array('id'=>$v['id']));?>" onclick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/pintuan/Public/Member/images/ico/del.gif"></a></div>
               
                </div>
            </div>
            <!-- 显示单图文信息 结束 --><?php endif; ?>
        <?php if(($v["msgtype"]) == "news"): ?><div class="item multi masonry-brick" style="position: absolute; top: 0px; left: 367px;">
                                    <div class="time"><?php echo (date("Y-m-d",$v["createtime"])); ?></div>
                <div class="first">
                    <div class="info">
                        <div class="img"><img src="<?php echo ($v['configs'][0]['ImgPath']); ?>"></div>
                        <div class="title"><?php echo ($v['configs'][0]['Title']); ?></div>
                    </div>
                </div>
                <?php if(is_array($v['configs'])): $i = 0; $__LIST__ = array_slice($v['configs'],1,null,true);if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vv): $mod = ($i % 2 );++$i;?><div class="list">
                      <div class="info">
                          <div class="title"><?php echo ($vv["Title"]); ?></div>
                          <div class="img"><img src="<?php echo ($vv["ImgPath"]); ?>"></div>
                      </div>
	              </div><?php endforeach; endif; else: echo "" ;endif; ?>
	                <div class="mod_del">
	                 <div class="mod"><a href="<?php echo U('news',array('id'=>$v['id']));?>"><img src="/pintuan/Public/Member/images/ico/mod.gif"></a></div>
	                 <div class="del"><a href="<?php echo U('delNewmsg',array('id'=>$v['id']));?>" onclick="if(!confirm('删除后不可恢复，继续吗？')){return false};"><img src="/pintuan/Public/Member/images/ico/del.gif"></a></div>
	                </div>
	            </div><?php endif; endforeach; endif; ?>             
	        <!-- 显示内容列表  结束 -->             
	    <div class="clear"></div>
	</div>
	<div class="blank12"></div>
	<div id="turn_page"><?php echo ($page); ?></div>
</div>

	</div>
</div>
</body>
</html>